import { useMenuStore } from "../store";
//权限检查方法
export const checkPermission = (value: any) => {
  const { role } = useMenuStore();
  let isExist = false;
  const buttonArr = role.getv() as any;
  //判断是否按钮有权限
  if (buttonArr.includes(value)) {
    isExist = true;
  }
  return isExist;
};